CVE-2025-27145
copyparty renders unsanitized filenames as HTML when user uploads empty files
Description
copyparty, a portable file server, has a DOM-based cross-site scripting vulnerability in versions prior to 1.16.15. The vulnerability is considered low-risk. By handing someone a maliciously-named file, and then tricking them into dragging the file into copyparty's Web-UI, an attacker could execute arbitrary javascript with the same privileges as that user. For example, this could give unintended read-access to files owned by that user. The bug is triggered by the drag-drop action itself; it is not necessary to actually initiate the upload. The file must be empty (zero bytes). Note that, as a general-purpose webserver, it is intentionally possible to upload HTML-files with arbitrary javascript in `<script>` tags, which will execute when the file is opened. The difference is that this vulnerability would trigger execution of javascript during the act of uploading, and not when the uploaded file was opened. Version 1.16.15 contains a fix.
INFO
Published Date :
Feb. 25, 2025, 2:15 a.m.
Last Modified :
Sept. 19, 2025, 7:06 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | LOW | [email protected] | ||||
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update copyparty to version 1.16.15.
- Ensure all copyparty instances are updated.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-27145.
| URL | Resource |
|---|---|
| https://github.com/9001/copyparty/commit/438ea6ccb06f39d7cbb4b6ee7ad44606e21a63dd | Patch |
| https://github.com/9001/copyparty/releases/tag/v1.16.15 | Release Notes |
| https://github.com/9001/copyparty/security/advisories/GHSA-m2jw-cj8v-937r | Exploit Third Party Advisory |
| https://github.com/9001/copyparty/security/advisories/GHSA-m2jw-cj8v-937r | Exploit Third Party Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-27145 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-27145
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-27145 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-27145 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Sep. 19, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Added CPE Configuration OR *cpe:2.3:a:9001:copyparty:*:*:*:*:*:*:*:* versions up to (excluding) 1.16.15 Added Reference Type GitHub, Inc.: https://github.com/9001/copyparty/commit/438ea6ccb06f39d7cbb4b6ee7ad44606e21a63dd Types: Patch Added Reference Type GitHub, Inc.: https://github.com/9001/copyparty/releases/tag/v1.16.15 Types: Release Notes Added Reference Type CISA-ADP: https://github.com/9001/copyparty/security/advisories/GHSA-m2jw-cj8v-937r Types: Exploit, Third Party Advisory Added Reference Type GitHub, Inc.: https://github.com/9001/copyparty/security/advisories/GHSA-m2jw-cj8v-937r Types: Exploit, Third Party Advisory -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Feb. 25, 2025
Action Type Old Value New Value Added Reference https://github.com/9001/copyparty/security/advisories/GHSA-m2jw-cj8v-937r -
New CVE Received by [email protected]
Feb. 25, 2025
Action Type Old Value New Value Added Description copyparty, a portable file server, has a DOM-based cross-site scripting vulnerability in versions prior to 1.16.15. The vulnerability is considered low-risk. By handing someone a maliciously-named file, and then tricking them into dragging the file into copyparty's Web-UI, an attacker could execute arbitrary javascript with the same privileges as that user. For example, this could give unintended read-access to files owned by that user. The bug is triggered by the drag-drop action itself; it is not necessary to actually initiate the upload. The file must be empty (zero bytes). Note that, as a general-purpose webserver, it is intentionally possible to upload HTML-files with arbitrary javascript in `<script>` tags, which will execute when the file is opened. The difference is that this vulnerability would trigger execution of javascript during the act of uploading, and not when the uploaded file was opened. Version 1.16.15 contains a fix. Added CVSS V3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N Added CWE CWE-79 Added CWE CWE-83 Added Reference https://github.com/9001/copyparty/commit/438ea6ccb06f39d7cbb4b6ee7ad44606e21a63dd Added Reference https://github.com/9001/copyparty/releases/tag/v1.16.15 Added Reference https://github.com/9001/copyparty/security/advisories/GHSA-m2jw-cj8v-937r